package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.common.bean.PageResult;
import com.jnzc.ocr.serv.shop.entity.ShopRefund;
import com.jnzc.ocr.serv.shop.entity.ShopRefundSale;
import com.jnzc.ocr.serv.shop.filter.ShopRefundFilter;
import com.jnzc.ocr.serv.shop.filter.ShopRefundSaleFilter;
import com.jnzc.ocr.serv.shop.vo.ShopRefundSaleCreateVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhangcm
 * @version 1.0, 2017-11-26
 */
@FeignClient("serv-shop")
@RequestMapping("/shopRefundSaleApi")
public interface ShopRefundSaleApi {

    @PostMapping("/search")
    PageResult<ShopRefundSale> search(@RequestBody ShopRefundSaleFilter filter, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/create")
    void create(@RequestBody ShopRefundSaleCreateVo createVo, @RequestParam("shopId") Long shopId);
}
